package com.dongdongshop.data;

public enum ResultEnum {
    SUCCESS(10000,"操作成功"),
    ERROR(10001,"操作失败"),
    NOAUTH(10002,"没有权限"),
    PARAMETER_EXCEPTION(10003,"参数异常"),
    PWDNO(10004,"密码不一致"),
    CODEERROR(10005,"验证码错误"),
    USERNAMEERROR(10005,"密码错误"),
    PASSWORDERROR(10005,"账号错误"),
    ;

    private Integer index;

    private String name;

    ResultEnum(Integer index, String name) {
        this.index = index;
        this.name = name;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
